package catchData.startup;

import java.util.ArrayList;
import java.util.List;

import util.Conts;

import catchData.core.Item4CountryMedicine;

/**
 * @author Suwy
 * web data from Country Medicine Web
 */
public class Thread4CatchCountryMedicine {
	
	private final List<Item4CountryMedicine> Item4CountryMedicineList = new ArrayList<Item4CountryMedicine>();
	private final String PATH = Conts.HTM_ROOT_PATH;
	
	private void initItem4CountryMedicine() {
		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "国产药品", 1, 1, 25, "124356560303886909015737447882", 1));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "药品注册补充申请备案情况", 1,8781, 63, "124356549685119229650057372133", 0));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "国产药品商品名", 424,513, 32, "124356639813072873644420336632", 5355));//7770
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "进口药品", 284,303, 36, "124356651564146415214424405468", 4245));
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "药品生产企业", 371,466, 34, "118103348874362715907884020353", 5561));//6981
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "GMP认证", 116,1448, 23, "118715589530474392063703010776", 1730));//20371
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "药品经营企业", 395, 9067, 41, "118715854214917952033010551784", 5921));//142655
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "GSP认证", 383, 9116, 24, "118715593187347941914723540896",5730));//134287
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "中药保护品种", 1, 67, 22, "124356646179610926452650807501", 0));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "OTC化学药品说明书范本", 1, 79, 1, "118622086116566219450310733363", 0));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "OTC中药说明书范本", 252, 307, 2,"118622090243325658757488986970", 3765));//4604
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "国产医疗器械", 231,4661, 26, "118103058617027083838706701567", 3451));//58999
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "器械分类目录", 1, 21, 20, "118715514657942222068939811234", 0));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "器械受检目录", 272,1896, 18, "118714928370753714662210043652", 4075));//22486
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "进口医疗器械", 1820,1831, 27, "118103063506935484150101953610", 27285));//43495
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "器械标准目录", 1, 47, 21, "118715519595263187643733688337", 0));//
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "国产保健食品", 441,873, 30, "118103385532690845640177699192", 6600));//12454
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "进口保健食品", 1,48, 31,"118103387241329685908587941736",0));//711
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "国产化妆品", 443,1324, 68,"124053671285715992005675373538", 6630));//18060
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "进口化妆品", 6254,6319, 69, "124053679279972677481528707165", 93795));//83629
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "进口药品商品名", 176,193, 60, "124356657303811869543019763051", 2625));
//		Item4CountryMedicineList.add(new Item4CountryMedicine(PATH, "基本药物生产企业入网目录", 188,225, 79, "130708579294360527839069728542", 2805));
	}
	
	private void excute() {
		
		for (int i = 0; i < Item4CountryMedicineList.size(); i++) {
			Item4CountryMedicine o = new Item4CountryMedicine(PATH, Item4CountryMedicineList.get(i).getFileName(), Item4CountryMedicineList.get(i).getStart(), Item4CountryMedicineList.get(i).getEnd(), 
					Item4CountryMedicineList.get(i).getTableId(), Item4CountryMedicineList.get(i).getBcId(), Item4CountryMedicineList.get(i).getSeq());
			o.start();
		}
	}

	public static void main(String[] args) {
		Thread4CatchCountryMedicine instance = new Thread4CatchCountryMedicine();
		instance.initItem4CountryMedicine();
		instance.excute();
	}
}